<?php
/**
 * PsiFramework
 *
 * Php Simple Framework
 *
 * PHP version 5.3
 *
 * @category  PsiFramework.Plugins.Shop.Classes.Model
 * @package   PsiFramework.Plugins.Shop.Classes.Model
 * @author    Remi San <remi.san@gmail.com>
 * @copyright 2011 Remi San
 * @license   http://creativecommons.org/licenses/by/3.0/  Creative Commons CC BY 3.0
 * @version   SVN: <svn_id>
 * @link      http://www.psiframework.com/phpdoc/classes/db_\PsiFramework\Plugins\Shop\Classes\Model\OrderItem.html
 */

namespace PsiFramework\Plugins\Shop\Classes\Model;

import("Classes.Model.Object");
import("Classes.Util.Object.ReferenceObject");
import("Classes.Util.Parameters.ObjectParameters");
import("Plugins.Shop.Classes.Model.ItemCategory");

use \PsiFramework\Classes\Model\Object;
use \PsiFramework\Classes\Util\Object\ReferenceObject;
use \PsiFramework\Classes\Util\Parameters\ObjectParameters;

/**
 * The OrderItem Object
 *
 * This is the class for the OrderItem Object
 *
 * @category PsiFramework.Plugins.Shop.Classes.Model
 * @package  PsiFramework.Plugins.Shop.Classes.Model
 * @author   Remi San <remi.san@gmail.com>
 * @license  http://creativecommons.org/licenses/by/3.0/  Creative Commons CC BY 3.0
 * @link     http://www.psiframework.com/phpdoc/classes/db_\PsiFramework\Plugins\Shop\Classes\Model\OrderItem.html
 */
class OrderItem extends Object
{

    /**
     * @var int
     */
    protected /*int*/          $_id ;
    
    /**
     * @var string
     */
    protected /*string*/       $_item ;
    
    /**
     * @var ItemCategory
     */
    protected /*ItemCategory*/ $_category ;
    
    
    /**
     * Constructor
     * 
     * @param int          $id       The id
     * @param string       $item     The item reference
     * @param ItemCategory $category The category
     * 
     * @return OrderItem
     */
    public function __construct(
        /*int*/          $id=null,
        /*string*/       $item=null,
        /*ItemCategory*/ $category=null
    )
    {
        $this->_id = $id ;
        $this->_item = $item ;
        $this->_category = $category ;
    }

    /**
     * Getter for the id / primary key
     *
     * @see Object::getId()
     *
     * @return int
     */
    public function getId()
    {
        return $this->_id ;
    }

    /**
     * Setter for the id
     *
     * @param int $id The id
     *
     * @return void
     */
    public function setId(/*int*/ $id)
    {
        $this->_id = $id ;
    }
    
    /**
     * Getter for the item reference
     *
     * @return string
     */
    public function getItem()
    {
    	return $this->_item ;
    }
    
    /**
     * Setter for the item reference
     *
     * @param string $item The item reference
     *
     * @return void
     */
    public function setItem(ReferenceObject $item)
    {
    	$this->_item = $item ;
    }
    
    /**
     * Getter for the category
     *
     * @return ItemCategory
     */
    public function getCategory()
    {
    	return $this->_category ;
    }
    
    /**
     * Setter for the category
     *
     * @param ItemCategory $category The category
     *
     * @return void
     */
    public function setCategory(/*ItemCategory*/ $category)
    {
    	$this->_category = $category ;
    }
    
    /**
     * Shows the OrderItem as a string
     *
     * @see Object::toString()
     *
     * @return string
     */
    public function toString()
    {
        
    }

}
